﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StoreManagementSystem.DataAccessLayer;
using StoreManagementSystem.DomainObjects;

namespace StoreTester
{
    [TestFixture]
    class StoreUserDAOTester
    {
        [Test]
        public void saveUserTest()
        {
            SQLDAOFactory factory = new SQLDAOFactory(new SQLDataProvider(), "SQLiteConnectionString");
            IDataAccessObject<Entity> storeUserTest
                = factory.createDAO("storeuser");
            Assert.IsInstanceOf<SQLStoreUserDAO>(storeUserTest);
            StoreUser userTest = new StoreUser("123", "John", "Vidrine", "youcanneverdefeathelalelulilo", "JusticeFist", "OverLimitAccelSynchro@gmail.com");
            storeUserTest.create(userTest);
        }
    }
}
